<?php
declare(strict_types=1);

namespace app\common\model;

use think\Model;

class AdminLogModel extends Model
{
    protected $name = 'admin_log';


    public static function insetLog(int $adminId, string $adminIp, int $type = 0, string $content = '')
    {
        return self::insert([
            'admin_id' => $adminId,
            'add_time' => time(),
            'admin_ip' => $adminIp,
            'type' => $type,
            'content' => $content
        ]);
    }
}